package cn.yh.shop.product.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yh.shop.product.dao.PakageDao;
import cn.yh.shop.product.model.Pakage;
import cn.yh.shop.product.service.IPakageService;
@Service
public class PakageServiceImpl implements IPakageService{
	/**
	 * 包装数据访问对象
	 */
	@Autowired
	private PakageDao pakagedao;
	
	@Override
	public List<Pakage> getPackages() {
		return pakagedao.selectPackage();
	}

	@Override
	public Pakage getPackageById(HashMap map) {
		return pakagedao.selectPackageById(map);
	}
	@Override
	public List<Pakage> selectPrice(String goodsid){
		return pakagedao.selectPrice(goodsid);
	}
	@Override
	public List<Pakage> getPackageListById(HashMap<String, String> map) {
		return pakagedao.selectPackagelistById(map);
	}

}
